package com.tanhua.admin.utils;

import com.tanhua.admin.pojo.AdminUser;

/**
 * @ClassName AdminUserThreadLocal
 * @Description TODO 统一处理token
 * @Author JavaDev
 * @Date 2021/1/7 15:40
 * @Version 1.0
 */
public class AdminUserThreadLocal {

    private static final ThreadLocal<AdminUser> AdminUser_THREAD_LOCAL = new ThreadLocal<AdminUser>();

    public AdminUserThreadLocal() {
    }

    public static void set(AdminUser AdminUser) {
        AdminUser_THREAD_LOCAL.set(AdminUser);
    }

    public static AdminUser get() {
        return AdminUser_THREAD_LOCAL.get();
    }
}